\section{Tools.JsonHelper类参考}
\label{class_tools_1_1_json_helper}\index{Tools::JsonHelper@{Tools::JsonHelper}}


JsonHelper类  


\subsection*{静态公有成员}
\begin{DoxyCompactItemize}
\item 
static string {\bf ListToJson$<$ T $>$} (IList$<$ T $>$ list, string jsonName)
\begin{DoxyCompactList}\small\item\em List转成json. \item\end{DoxyCompactList}\item 
static string {\bf ListToJson$<$ T $>$} (IList$<$ T $>$ list)
\begin{DoxyCompactList}\small\item\em List转成json. \item\end{DoxyCompactList}\item 
static string {\bf ToJson} (object jsonObject)
\begin{DoxyCompactList}\small\item\em 对象[dui xiang]转换[zhuan huan]为Json字符[zi fu]串[zi fu chuan] \item\end{DoxyCompactList}\item 
static string {\bf ToJson} (IEnumerable array)
\begin{DoxyCompactList}\small\item\em 对象[dui xiang]集合转换[zhuan huan]\doxyref{Json}{p.}{class_tools_1_1_json} \item\end{DoxyCompactList}\item 
static string {\bf ToJson} (DataTable dt)
\begin{DoxyCompactList}\small\item\em Datatable转换[zhuan huan]为Json. \item\end{DoxyCompactList}\item 
static string {\bf ToJson} (DataTable dt, string jsonName)
\begin{DoxyCompactList}\small\item\em DataTable转成Json. \item\end{DoxyCompactList}\item 
static string {\bf ToJsonEasyUi} (DataTable dt, string jsonName)
\begin{DoxyCompactList}\small\item\em DataTable转成Json. \item\end{DoxyCompactList}\item 
static string {\bf ToJson} (DbDataReader dataReader)
\begin{DoxyCompactList}\small\item\em DataReader转换[zhuan huan]为Json. \item\end{DoxyCompactList}\item 
static string {\bf ToJson} (DataSet dataSet)
\begin{DoxyCompactList}\small\item\em DataSet转换[zhuan huan]为Json. \item\end{DoxyCompactList}\item 
static string {\bf ToArrayString} (IEnumerable array)
\begin{DoxyCompactList}\small\item\em 普通集合转换[zhuan huan]\doxyref{Json}{p.}{class_tools_1_1_json} \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{详细描述}
JsonHelper类 

\subsection{成员函数文档}
\index{Tools::JsonHelper@{Tools::JsonHelper}!ListToJson$<$ T $>$@{ListToJson$<$ T $>$}}
\index{ListToJson$<$ T $>$@{ListToJson$<$ T $>$}!Tools::JsonHelper@{Tools::JsonHelper}}
\subsubsection[{ListToJson$<$ T $>$}]{\setlength{\rightskip}{0pt plus 5cm}static string Tools.JsonHelper.ListToJson$<$ T $>$ (
\begin{DoxyParamCaption}
\item[{IList$<$ T $>$}]{ list, }
\item[{string}]{ jsonName}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_json_helper_a7ffbd5b6a6a73b6a23a9497d03d7d6f2}


List转成json. 


\begin{DoxyTemplParams}{Template Parameters}
{\em T} & \\
\hline
\end{DoxyTemplParams}

\begin{DoxyParams}{参数}
{\em jsonName} & \\
\hline
{\em list} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\index{Tools::JsonHelper@{Tools::JsonHelper}!ListToJson$<$ T $>$@{ListToJson$<$ T $>$}}
\index{ListToJson$<$ T $>$@{ListToJson$<$ T $>$}!Tools::JsonHelper@{Tools::JsonHelper}}
\subsubsection[{ListToJson$<$ T $>$}]{\setlength{\rightskip}{0pt plus 5cm}static string Tools.JsonHelper.ListToJson$<$ T $>$ (
\begin{DoxyParamCaption}
\item[{IList$<$ T $>$}]{ list}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_json_helper_af5acf27f06957401c1e196d3a35e5097}


List转成json. 


\begin{DoxyTemplParams}{Template Parameters}
{\em T} & \\
\hline
\end{DoxyTemplParams}

\begin{DoxyParams}{参数}
{\em list} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\index{Tools::JsonHelper@{Tools::JsonHelper}!ToArrayString@{ToArrayString}}
\index{ToArrayString@{ToArrayString}!Tools::JsonHelper@{Tools::JsonHelper}}
\subsubsection[{ToArrayString}]{\setlength{\rightskip}{0pt plus 5cm}static string Tools.JsonHelper.ToArrayString (
\begin{DoxyParamCaption}
\item[{IEnumerable}]{ array}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_json_helper_a1baaaf30e58936908c1b9565c87ec406}


普通集合转换[zhuan huan]\doxyref{Json}{p.}{class_tools_1_1_json} 


\begin{DoxyParams}{参数}
{\em array} & 集合对象[dui xiang]\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
Json字符[zi fu]串[zi fu chuan]
\end{DoxyReturn}
\index{Tools::JsonHelper@{Tools::JsonHelper}!ToJson@{ToJson}}
\index{ToJson@{ToJson}!Tools::JsonHelper@{Tools::JsonHelper}}
\subsubsection[{ToJson}]{\setlength{\rightskip}{0pt plus 5cm}static string Tools.JsonHelper.ToJson (
\begin{DoxyParamCaption}
\item[{DbDataReader}]{ dataReader}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_json_helper_a0be67d68b916f53fb9fe56d143ce4ece}


DataReader转换[zhuan huan]为Json. 


\begin{DoxyParams}{参数}
{\em dataReader} & DataReader对象[dui xiang]\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
Json字符[zi fu]串[zi fu chuan]
\end{DoxyReturn}
\index{Tools::JsonHelper@{Tools::JsonHelper}!ToJson@{ToJson}}
\index{ToJson@{ToJson}!Tools::JsonHelper@{Tools::JsonHelper}}
\subsubsection[{ToJson}]{\setlength{\rightskip}{0pt plus 5cm}static string Tools.JsonHelper.ToJson (
\begin{DoxyParamCaption}
\item[{DataSet}]{ dataSet}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_json_helper_a91457fa0fe01ac0d45b06cc3548fb8ac}


DataSet转换[zhuan huan]为Json. 


\begin{DoxyParams}{参数}
{\em dataSet} & DataSet对象[dui xiang]\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
Json字符[zi fu]串[zi fu chuan]
\end{DoxyReturn}
\index{Tools::JsonHelper@{Tools::JsonHelper}!ToJson@{ToJson}}
\index{ToJson@{ToJson}!Tools::JsonHelper@{Tools::JsonHelper}}
\subsubsection[{ToJson}]{\setlength{\rightskip}{0pt plus 5cm}static string Tools.JsonHelper.ToJson (
\begin{DoxyParamCaption}
\item[{DataTable}]{ dt, }
\item[{string}]{ jsonName}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_json_helper_a0aaeca493289a7069b30e6c614f0fd61}


DataTable转成Json. 


\begin{DoxyParams}{参数}
{\em jsonName} & \\
\hline
{\em dt} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\index{Tools::JsonHelper@{Tools::JsonHelper}!ToJson@{ToJson}}
\index{ToJson@{ToJson}!Tools::JsonHelper@{Tools::JsonHelper}}
\subsubsection[{ToJson}]{\setlength{\rightskip}{0pt plus 5cm}static string Tools.JsonHelper.ToJson (
\begin{DoxyParamCaption}
\item[{DataTable}]{ dt}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_json_helper_a250559c2cb2739ab638ac67665020f7a}


Datatable转换[zhuan huan]为Json. 


\begin{DoxyParams}{参数}
{\em table} & Datatable对象[dui xiang]\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
Json字符[zi fu]串[zi fu chuan]
\end{DoxyReturn}
\index{Tools::JsonHelper@{Tools::JsonHelper}!ToJson@{ToJson}}
\index{ToJson@{ToJson}!Tools::JsonHelper@{Tools::JsonHelper}}
\subsubsection[{ToJson}]{\setlength{\rightskip}{0pt plus 5cm}static string Tools.JsonHelper.ToJson (
\begin{DoxyParamCaption}
\item[{IEnumerable}]{ array}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_json_helper_aabac95d9bcd31199d10096423ac0be22}


对象[dui xiang]集合转换[zhuan huan]\doxyref{Json}{p.}{class_tools_1_1_json} 


\begin{DoxyParams}{参数}
{\em array} & 集合对象[dui xiang]\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
Json字符[zi fu]串[zi fu chuan]
\end{DoxyReturn}
\index{Tools::JsonHelper@{Tools::JsonHelper}!ToJson@{ToJson}}
\index{ToJson@{ToJson}!Tools::JsonHelper@{Tools::JsonHelper}}
\subsubsection[{ToJson}]{\setlength{\rightskip}{0pt plus 5cm}static string Tools.JsonHelper.ToJson (
\begin{DoxyParamCaption}
\item[{object}]{ jsonObject}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_json_helper_ab9418e1b78b02ded9d00d901d5a2cc5a}


对象[dui xiang]转换[zhuan huan]为Json字符[zi fu]串[zi fu chuan] 


\begin{DoxyParams}{参数}
{\em jsonObject} & 对象[dui xiang]\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
Json字符[zi fu]串[zi fu chuan]
\end{DoxyReturn}
\index{Tools::JsonHelper@{Tools::JsonHelper}!ToJsonEasyUi@{ToJsonEasyUi}}
\index{ToJsonEasyUi@{ToJsonEasyUi}!Tools::JsonHelper@{Tools::JsonHelper}}
\subsubsection[{ToJsonEasyUi}]{\setlength{\rightskip}{0pt plus 5cm}static string Tools.JsonHelper.ToJsonEasyUi (
\begin{DoxyParamCaption}
\item[{DataTable}]{ dt, }
\item[{string}]{ jsonName}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_json_helper_a3b8bb86ba9fee5e7be1ed01555e59137}


DataTable转成Json. 


\begin{DoxyParams}{参数}
{\em jsonName} & \\
\hline
{\em dt} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}


该类的文档由以下文件生成：\begin{DoxyCompactItemize}
\item 
D:/Project/1101/Tools/JsonHelper.cs\end{DoxyCompactItemize}
